package org.zappee.dannyt.cairngorm.control
{
	import com.adobe.cairngorm.control.FrontController;
	
	import org.zappee.dannyt.cairngorm.command.DeleteBugCommand;
	import org.zappee.dannyt.cairngorm.command.EditBugCommand;
	import org.zappee.dannyt.cairngorm.command.FilterBugsCommand;
	import org.zappee.dannyt.cairngorm.command.GetBugsCommand;
	import org.zappee.dannyt.cairngorm.command.OpenCloseBugCommand;
	import org.zappee.dannyt.cairngorm.command.SaveBugCommand;
	import org.zappee.dannyt.cairngorm.event.DeleteBugEvent;
	import org.zappee.dannyt.cairngorm.event.EditBugEvent;
	import org.zappee.dannyt.cairngorm.event.FilterBugsEvent;
	import org.zappee.dannyt.cairngorm.event.GetBugsEvent;
	import org.zappee.dannyt.cairngorm.event.OpenCloseBugEvent;
	import org.zappee.dannyt.cairngorm.event.SaveBugEvent;

	public class ZappeeController extends FrontController
	{
		public function ZappeeController()
		{
			this.addCommand( GetBugsEvent.EVENT_GET_BUGS, GetBugsCommand );
			this.addCommand( EditBugEvent.EVENT_EDIT_BUG, EditBugCommand );
			this.addCommand( SaveBugEvent.EVENT_SAVE_BUG, SaveBugCommand );
			this.addCommand( FilterBugsEvent.EVENT_FILTER_BUGS, FilterBugsCommand );
			this.addCommand( OpenCloseBugEvent.EVENT_OPEN_CLOSE_BUG, OpenCloseBugCommand );
			this.addCommand( DeleteBugEvent.EVENT_DELETE_BUG, DeleteBugCommand );
		}
	}
}